import request from '@/utils/request'

export default {
  //添加小节
  addVideo(video){
    return request({
      url:`/edu/video/addVideo/`,
      method:'post',
      data:video
    })
  },
  //修改章节
  updateVideo(video){
    return request({
      url:`/edu/video/updateVideo/`,
      method:'post',
      data:video
    })
  },
  //根据id查询章节
  getVideo(videoId){
    return request({
      url:`/edu/video/${videoId}`,
      method:'get'
    })
  },
  //删除章节
  deleteVideo(videoId){
    return request({
      url:`/admin/edu/video/${videoId}`,
      method:'delete'
    })
  },
  //删除视频
  removeVideo(id){
    return request({
      url:`/admin/vod/remove/${id}`,
      method:'delete'
    })
  }
}
